<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../layui/css/layui.css" media="all">
<title>用户</title>
</head>

<body>

	<fieldset class="layui-elem-field layui-field-title"
		style="margin-top: 20px;">
		<legend>用户</legend>
	</fieldset>

	<form class="layui-form" id="myform" action="../../user/saveOrUpdate.action" method="post" lay-filter="myform">
		<input type="hidden" id="usersId" name="usersId">
		<input type="hidden" id="usersType" name="usersType">
		<div class="layui-form-item">
			<label class="layui-form-label">用户名称</label>
			<div class="layui-input-block">
				<input type="text" name="usersName" id="usersName" lay-verify="required"
					placeholder="请输入用户名称" autocomplete="off" class="layui-input"
					maxlength="10">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">用户密码</label>
			<div class="layui-input-block">
				<input type="password" name="usersPassword" id="usersPassword" lay-verify="required"
					placeholder="请输入用户密码" autocomplete="off" class="layui-input"
					maxlength="10">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">用户头像</label>
			<div class="layui-input-inline">
				<div class="layui-upload">
				  <button type="button" class="layui-btn" id="test1">上传图片</button>
				  <div class="layui-upload-list">
				    <img class="layui-upload-img" id="demo1" width="90px" height="90px">
				    <input type="hidden" id="usersImage" name="usersImage">
				    <p id="demoText"></p>
				  </div>
				</div>   
			</div>
		</div>
		<div class="layui-form-item" id="sjmc" style="display:none">
			<label class="layui-form-label">商家名称</label>
			<div class="layui-input-inline">
				<input type="text" name="businessName" id="businessName"
					placeholder="请输入商家名称" autocomplete="off" class="layui-input" maxlength="10">
			</div>
		</div>
		<!-- 提交重置 -->
		<div class="layui-form-item">
			<div class="layui-input-block">
				<input type="submit" class="layui-btn" lay-filter="userAdd" lay-submit=""
					value="立即提交" id="submit">
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>

	<script src="../../layui/layui.js"></script>
	<script type="text/javascript"
		src="../../res/js/jquery-1.10.2.js"></script>
	<script src="../../res/js/base.js"></script>
	<script src="../../res/js/backstage/userAddOrUpdate.js"></script>

</body>
</html>